import { SETTYPES, SETOBJ, SETLIST } from '../mutation-type'

export default {
  namespaced: true, // 命名空间
  state: {
    obj: null,
    list: null,
    types: ''
  },
  mutations: {
    [SETTYPES] (state, payload) {
      state.types = payload
    },
    [SETOBJ] (state, payload) {
      state.obj = payload
    },
    [SETLIST] (state, payload) {
      state.list = payload
    }
  },
  actions: {
  }
}
